package com.mrti.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Blog implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value="id",type = IdType.AUTO)
    private Long id;
    private String title;//博文标题
    private String thumbnail;//博文缩略图
    private String content;
    private LocalDateTime postTime;
    private LocalDateTime modifyTime;
    private Long viewCount;
    private Long likeCount;
    private Long favoriteCount;
    private Long userId;


}
